<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="../../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>添加/修改调查统计季度（整改表）</title>
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css"
	rel="stylesheet">

<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/table_style.css"
	rel="stylesheet">
</head>

<body class="gray-bg">

	<div class="animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<!-- <h5>添加/修改新闻</h5>
						<div class="ibox-tools">
							<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
							</a>
						</div> -->
						<ul class="nav nav-tabs">
							<li class="active"><a data-toggle="tab" href="#tab-1"><i
									class="fa fa-user"></i>调查统计季报表三（核查表）——审核</a></li>
									<div class="col-lg-7 col-md-7 col-sm-3 col-xs-1"></div>
                    		<button type="button" class="btn btn-success glyphicon glyphicon-triangle-left btn-sm 
                    		col-lg-1 col-md-1 col-sm-3 col-xs-3" onclick="backList();">
                    		返回</button>

						</ul>
					</div>

					<div class="ibox-content">
						<input type="hidden" id="fileUploadIp" value="${fileUploadIp}" />
						<input type="hidden" id="tableId" value="${threeChick.tableId}" />
						<form action="<%=request.getContextPath()%>/bgGlutTableThreeChick/addTable.do"
							id="subForm" method="post" class="form-horizontal"
							onsubmit="return (beforeSub() && checkSubmit());" enctype="multipart/form-data">
							<input type="hidden" id="newsId" name="tableId"
								value="${threeChick.tableId}" /> <input type="hidden"
								id="status" name="status" value="1" />

							<div class="table-responsive tab-content">

								<!-- *************新闻tab页**************** -->
								<div id="tab-1" class="tab-pane active">
									<div class="full-height-scroll">
									<div class="form-group col-lg-12 col-md-12  col-sm-12 col-xs-12">
											<div class="col-lg-12 col-md-12  col-sm-12 col-xs-12">
											    <label class="control-label col-lg-2 col-md-2  col-sm-12 col-xs-12 ">呈报单位及呈报人:</label>
												<label class="control-label col-lg-5 col-md-5 col-sm-12 col-xs-12 " style="text-align:left;">${threeChick.company}&nbsp;&nbsp;&nbsp;&nbsp;${threeChick.DReportP}</label>
												<label class="control-label col-lg-3 col-md-3 col-sm-12 col-xs-12">填报日期:</label>
											    <label class="control-label col-lg-2 col-md-2 col-sm-12 col-xs-12 "  style="text-align:left;">
											    <my:DateSubString date="${threeChick.DReportTime}" subNum="16"/>
											    </label>
											    <input type="hidden" id="id_userID" name="userId" value="${userId}" />
											</div>
									</div>
										<%-- <div class="form-group col-lg-6 col-sm-12">
											<label class="col-sm-3 control-label">呈报单位及呈报人:</label>
											<div class="col-sm-6">
												<span>${threeChick.company}&nbsp;&nbsp;&nbsp;&nbsp;${threeChick.DReportP}</span>
											</div>
										</div>
										<div class="form-group col-lg-6 col-sm-12" id="data_1">
											<label class="control-label col-sm-2">填报日期</label> <label
												class="col-sm-2 control-label">${threeChick.reportTime}</label>
										</div> --%>
										
										<div class="row div-table">
										 <!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 480px;">
												<div class="subwrap">
													<div class="content">单位提出整改措施和意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">单位提出整改措施和意见</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-4 hidden-sm hidden-xs" style="height: 124px;">
												<div class="subwrap">
													<div class="content">存在问题说明（针对表一所列的三大方面问题，特别是第一方面17项问题）</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">存在问题说明（针对表一所列的三大方面问题，特别是第一方面17项问题）</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
															<textarea class="form-control text_style" rows="4" 
															style="line-height:2.0;outline:none;resize:none;"name="problem" disabled>${threeChick.problem}</textarea>
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-4 hidden-sm hidden-xs" style="height: 124px;">
												<div class="subwrap">
													<div class="content">积极表现说明</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">积极表现说明</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="4" 
														style="line-height:2.0;outline:none;resize:none;"name="performance" disabled>${threeChick.performance}</textarea>
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-4 hidden-sm hidden-xs" style="height: 232px;">
												<div class="subwrap">
													<div class="content">列为动态管理对象建议</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">列为动态管理对象建议</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12"style="padding:0px;height: 180px;" >
												<div class="subwrap" style="padding:0;">
													<div class="content">
														<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="border:0px;border-bottom:2px solid #ccc;height:auto">
															<div class="subwrap">
																<div class="content">呈报　　${threeChick.suggestionName}　　 同志作为　　
													<c:if test="${threeChick.suggestionCon == '1'}">积极分子</c:if>
													<c:if test="${threeChick.suggestionCon == '2'}">重点帮扶对象</c:if>
													<c:if test="${threeChick.suggestionCon == '3'}">关注对象</c:if>
													管理。
																
														
																</div>
															</div>
														</div>
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																单位主管领导（所队长室中心主任）签字：
													<div id="imgdiv_0" class="imgname">
															<img id="imgShow_0" width="100%" height="100%"
																style="cursor: pointer;" 
																   src="http://localhost:8086/images/${threeChick.sugSignA}" />
													</div>
																
														
																</div>
															</div>
														</div>
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																单位监管领导（教导员或负责领导）签字：
													<c:if test="${not empty threeChick.sugSignB}">
														<div id="imgdiv_1" class="imgname">
															<img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																src="http://localhost:8086/images/${threeChick.sugSignB}" />
														</div>
													</c:if>
													<c:if test="${empty threeChick.sugSignB}">
														<div id="imgdiv_1" class="imgname">
															<img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																src="http://localhost:8086/images/201703311621574260.png"
																onclick="clickImg('deldisabled1', 'imgShow_1', 800);" />
														</div>
														<input type="hidden" id="deldisabled1" name="sugSignB" />
													</c:if>
																
																
														
																</div>
															</div>
														</div>
														
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">政工室主任意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">政工室主任意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-11 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled2" 
														style="line-height:2.0;outline:none;resize:none;"rows="3" name="sugZgs" disabled
														maxlength="300"
															>${threeChick.sugZgs}</textarea> 
														<c:if test="${not empty threeChick.sugZgsTime}">
													    <span>${threeChick.sugZgsTime}</span>
													</c:if>
													<c:if test="${empty threeChick.sugZgsTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugZgsTime" />
													</c:if>
													
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">分管局领导意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">分管局领导意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-11 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled3" 
														style="line-height:2.0;outline:none;resize:none;"rows="3" name="sugFgj" disabled 
														maxlength="300" 
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${threeChick.sugFgj}</textarea> 
														<c:if test="${not empty threeChick.sugFgjTime}">
													    <span>${threeChick.sugFgjTime}</span>
													</c:if>
													<c:if test="${empty threeChick.sugFgjTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugFgjTime" />
													</c:if>
													</div>
												</div>
											</div> 
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">局主要领导意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">局主要领导意见
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" rows="3" 
														style="line-height:2.0;outline:none;resize:none;"name="leaderSignJzh" disabled
														maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">同意进行动态管理。</textarea> 
														<c:if test="${not empty threeChick.leaderTime}">
													    <span>${threeChick.sugZgsTime}</span>
														</c:if>
														<c:if test="${empty threeChick.leaderTime}">
															<span id="img_3">年　　月　　日</span>
															<input type="hidden" id="date_img_3"  name="leaderTime" />
														</c:if>
													</div>
												</div>
											</div> 
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">局长会签
													</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">局长会签
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
													 <c:if test="${not empty threeChick.leaderSignJzh}">
															<div id="imgdiv_4" class="imgname" style="height:102px">
																<img id="imgShow_4" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${threeChick.leaderSignJzh}" />
															</div>
														</c:if>
														<c:if test="${empty threeChick.leaderSignJzh}">
															<div id="imgdiv_4" class="imgname" style="height:102px">
																<img id="imgShow_4" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled4', 'imgShow_4', 800);getDate('img_3','date_img_3');" />
															</div>
															<input type="hidden" id="deldisabled4" name="leaderSignJzh" />
													    </c:if>
														
													</div>
													
												</div>
											</div> 
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">政委会签
													</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">政委会签
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<c:if test="${not empty threeChick.leaderSignZwh}">
															<div id="imgdiv_5" class="imgname" style="height:102px">
																<img id="imgShow_5" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${threeChick.leaderSignZwh}" />
															</div>
														</c:if>
														<c:if test="${empty threeChick.leaderSignZwh}">
															<div id="imgdiv_5" class="imgname" style="height:102px">
																<img id="imgShow_5" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled5', 'imgShow_5', 800);" />
															</div>
															<input type="hidden" id="deldisabled5" name="leaderSignZwh" />
													    </c:if>
													</div>
												</div>
											</div>  
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">纪委书记会签
													</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">纪委书记会签
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<c:if test="${not empty threeChick.leaderSignJwsjh}">
															<div id="imgdiv_6" class="imgname" style="height:102px">
																<img id="imgShow_6" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${threeChick.leaderSignJwsjh}" />
															</div>
														</c:if>
														<c:if test="${empty threeChick.leaderSignJwsjh}">
															<div id="imgdiv_6" class="imgname" style="height:102px">
																<img id="imgShow_6" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled6', 'imgShow_6', 800);" />
															</div>
															<input type="hidden" id="deldisabled6" name="leaderSignJwsjh" />
													    </c:if>
													</div>
												</div>
											</div> 
										 </div>
									<%-- 	<div class="col-lg-12">
											<table class="table table-bordered">
												<tr>
													<td class="label_style col-lg-1" rowspan="4" colspan="1">单位呈报意见</td>
													<td class="label_style col-lg-2" colspan="2">存在问题说明（针对表一所列的三大方面问题，特别是第一方面17项问题）</td>
													<td class="label_style col-lg-9" colspan="9"><textarea
															class="form-control text_style" rows="4" name="problem"
															disabled
															maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${threeChick.problem}</textarea></td>
												</tr>
												<tr>
													<td class="label_style col-lg-2" colspan="2">积极表现说明</td>
													<td class="label_style col-lg-9" colspan="9"><textarea
															class="form-control text_style" rows="2" name="problem"
															disabled
															maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${threeChick.performance}</textarea></td>
												</tr>
												<tr>
													<td class="label_style col-lg-2" rowspan="2" colspan="2">列为动态管理对象建议</td>
													<td class="label_style col-lg-9" colspan="9">
													呈报　　${threeChick.suggestionName}　　 同志作为　　
													<c:if test="${threeChick.suggestionCon == '1'}">积极分子</c:if>
													<c:if test="${threeChick.suggestionCon == '2'}">重点帮扶对象</c:if>
													<c:if test="${threeChick.suggestionCon == '3'}">关注对象</c:if>
													 　　 管理。
													</td>
												</tr>
												<tr>
													<td class="label_style col-lg-5" colspan="4">
													单位主管领导（所队长室中心主任）签字：
													<div id="imgdiv_0" class="imgname">
															<img id="imgShow_0" width="100%" height="100%"
																style="cursor: pointer;" 
																   src="http://localhost:8086/images/${threeChick.sugSignA}" />
													</div>
													</td>
													<td class="label_style col-lg-5" colspan="4">
													单位监管领导（教导员或负责领导）签字：
													<c:if test="${not empty threeChick.sugSignB}">
														<div id="imgdiv_1" class="imgname">
															<img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																src="http://localhost:8086/images/${threeChick.sugSignB}" />
														</div>
													</c:if>
													<c:if test="${empty threeChick.sugSignB}">
														<div id="imgdiv_1" class="imgname">
															<img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																src="http://localhost:8086/images/201703311621574260.png"
																onclick="clickImg('deldisabled1', 'imgShow_1', 800);" />
														</div>
														<input type="hidden" id="deldisabled1" name="sugSignB" />
													</c:if>

													</td>
												</tr>

												<tr>
													<td class="label_style col-lg-1" colspan="1">政工室主任意见</td>
													<td class="label_style col-lg-11" colspan="11">
														<textarea class="form-control text_style yijian" id="deldisabled2" rows="2" name="sugZgs" disabled
														maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${threeChick.sugZgs}</textarea> 
														<c:if test="${not empty threeChick.sugZgsTime}">
													    <span>${threeChick.sugZgsTime}</span>
													</c:if>
													<c:if test="${empty threeChick.sugZgsTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugZgsTime" />
													</c:if>
													</td>
												</tr>
												<tr>
													<td class="label_style col-lg-1" colspan="1">分管局领导意见</td>
													<td class="label_style col-lg-11" colspan="11">
														<textarea class="form-control text_style yijian" id="deldisabled3" rows="2" name="sugFgj" disabled
														maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${threeChick.sugFgj}</textarea> 
														<c:if test="${not empty threeChick.sugFgjTime}">
													    <span>${threeChick.sugFgjTime}</span>
													</c:if>
													<c:if test="${empty threeChick.sugFgjTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugFgjTime" />
													</c:if>
													</td>
													
												</tr>
												<tr>
													<td class="label_style col-lg-1" colspan="1">局主要领导意见</td>
														<td class="label_style col-lg-2" colspan="2">
														<textarea class="form-control text_style yijian" rows="2" name="leaderSignJzh" disabled
														maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">同意进行动态管理。</textarea> 
														<c:if test="${not empty threeChick.leaderTime}">
													    <span>${threeChick.sugZgsTime}</span>
														</c:if>
														<c:if test="${empty threeChick.leaderTime}">
															<span id="img_3">年　　月　　日</span>
															<input type="hidden" id="date_img_3"  name="leaderTime" />
														</c:if>
													</td>
												
													<td class="label_style col-lg-1" colspan="1">局长会签</td>
													<td class="label_style col-lg-2" colspan="2">
													    <c:if test="${not empty threeChick.leaderSignJzh}">
															<div id="imgdiv_4" class="imgname">
																<img id="imgShow_4" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${threeChick.leaderSignJzh}" />
															</div>
														</c:if>
														<c:if test="${empty threeChick.leaderSignJzh}">
															<div id="imgdiv_4" class="imgname">
																<img id="imgShow_4" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled4', 'imgShow_4', 800);getDate('img_3','date_img_3');" />
															</div>
															<input type="hidden" id="deldisabled4" name="leaderSignJzh" />
													    </c:if>
													</td>
												
													<td class="label_style col-lg-1" colspan="1">政委会签</td>
													<td class="label_style col-lg-2" colspan="2">
													    <c:if test="${not empty threeChick.leaderSignZwh}">
															<div id="imgdiv_5" class="imgname">
																<img id="imgShow_5" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${threeChick.leaderSignZwh}" />
															</div>
														</c:if>
														<c:if test="${empty threeChick.leaderSignZwh}">
															<div id="imgdiv_5" class="imgname">
																<img id="imgShow_5" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled5', 'imgShow_5', 800);" />
															</div>
															<input type="hidden" id="deldisabled5" name="leaderSignZwh" />
													    </c:if>
												   </td>
												
													<td class="label_style col-lg-1" colspan="1">纪委书记会签</td>
													<td class="label_style col-lg-2" colspan="2">
													    <c:if test="${not empty threeChick.leaderSignJwsjh}">
															<div id="imgdiv_6" class="imgname">
																<img id="imgShow_6" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${threeChick.leaderSignJwsjh}" />
															</div>
														</c:if>
														<c:if test="${empty threeChick.leaderSignJwsjh}">
															<div id="imgdiv_6" class="imgname">
																<img id="imgShow_6" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled6', 'imgShow_6', 800);" />
															</div>
															<input type="hidden" id="deldisabled6" name="leaderSignJwsjh" />
													    </c:if>
													</td>
												</tr>
											</table>
										</div> --%>
									</div>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-xs-12">
									<button class="btn btn-primary pull-right m-t-n-xs" id="save"
										type="submit">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
	<script>
	<script type="text/javascript">
	//var fileUploadIp = $("#fileUploadIp").val();
	window.UEDITOR_UPLOAD_URL = '<%=request.getAttribute("fileUploadIp")%>';
</script>

	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/iCheck/icheck.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/views/sysdefault/js/uploadPreview.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/datapicker/bootstrap-datepicker.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/clockpicker/clockpicker.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/cropper/cropper.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/demo/form-advanced-demo.min.js"></script>
	<!-- 富文本编辑器 -->
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/ueditor.all.min.js"> </script>
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/lang/zh-cn/zh-cn.js"></script>
	<!-- 引入一个jQuery 用于初始化界面 -->
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js"></script>
	<script type="text/javascript">
    var basePath = '<%=request.getContextPath()%>';
		//定义图片服务器IP地址
		var ImageServer = "http://localhost:8086/images/";
		//签字div中img标签对应的id值
		var imgId = "";
		//签字div中隐藏的input对应的ID值
		var inputId = "";
		//初始化富文本编辑器
		var ue = UE.getEditor('editor');
		toastr.options = {
			"closeButton" : true,
			"debug" : false,
			"progressBar" : true,
			"positionClass" : "toast-top-left",
			"showDuration" : "400",
			"hideDuration" : "1000",
			"timeOut" : "3000",
			"extendedTimeOut" : "1000",
			"showEasing" : "swing",
			"hideEasing" : "linear",
			"showMethod" : "fadeIn",
			"hideMethod" : "fadeOut"
		}

		function setShowLength(obj, maxlength, id) {
			var rem = maxlength - obj.value.length;
			var wid = id;
			if (rem < 0) {
				rem = 0;
			}
			document.getElementById(wid).innerHTML = "还可以输入" + rem + "个字符";
		}
		//获取顺序标识
        var DSequenceMarkjs = '<%=request.getAttribute("DSequenceMarkjs")%>';
        var DSequenceMarkjsNum = parseInt(DSequenceMarkjs);
        var charge = '<%=request.getAttribute("charge")%>';
        
		//初始化页面
		$(function() {
			debugger;
			//<!-- 有单位主管和单位监管的情况 -->charge=='hasTwoCharge'
			//有单位主管he单位监管之一的情况
			if(charge=='hasTwoCharge'){
				//出去政工室主任意见或者分管句意见的输入框的disable属性
				if(eval(DSequenceMarkjsNum) == eval(2)||eval(DSequenceMarkjsNum) == eval(3)){
					$("#deldisabled"+DSequenceMarkjsNum).removeAttr("disabled");
					for(var i= 4;i<7;i++){
						$("#imgShow_"+i).removeAttr("onclick");
					}
				}else{
					for(var i= 1;i<7;i++){
						if(eval(DSequenceMarkjsNum) != eval(i)){
							$("#imgShow_"+i).removeAttr("onclick");
						}
					}
				}
			}else{
				//移除单位监管签名
				$("#imgShow_1").removeAttr("onclick");
				//是政工室主任或者分管句
				if(eval(DSequenceMarkjsNum) == eval(1)||eval(DSequenceMarkjsNum) == eval(2)){
					//移除政工室主任或者分管句的不可填写属性
					$("#deldisabled"+eval(DSequenceMarkjsNum+1)).removeAttr("disabled");
					//alert("#deldisabled"+eval(DSequenceMarkjsNum+1))
					//移除后三个签名
					for(var i= 4;i<7;i++){
						$("#imgShow_"+i).removeAttr("onclick");
					}
				}else{//是后三个签字
					//移除后三个中的其中两个签名，保留一个
					for(var i= 4;i<7;i++){
						if(eval(DSequenceMarkjsNum+1) != eval(i)){
							$("#imgShow_"+i).removeAttr("onclick");
						}
					}
				}
			}
			
			
			$(".i-checks").iCheck({
				checkboxClass : "icheckbox_square-green",
				radioClass : "iradio_square-green",
			});
			//禁止后退键 作用于Firefox、Opera
			document.onkeypress = banBackSpace;
			//禁止后退键  作用于IE、Chrome
			document.onkeydown = banBackSpace;
		});
		//提交表单前校验--由于每次只提交一次  所以只需校验莫一项即可
		function beforeSub() {
			if(charge=='hasTwoCharge'){
				if($("#deldisabled"+DSequenceMarkjsNum).val()==''){
					toastr.warning("你还没有审核完成", "提示");
					return false;
				}
				return true;
			}else{
				if($("#deldisabled"+eval(DSequenceMarkjsNum+1)).val()==''){
					toastr.warning("你还没有审核完成", "提示");
					return false;
				}
				return true;
			}
			
		}
		
		function checkSubmit(){
			debugger;
		    var mId=$("#tableId").val();
		    var temp=false;
		    $.ajax({
				type : "POST",
				url : basePath + "/bgGlutTableThreeChick/checkIsBeCheck.do",
				data : {"tId" : mId},
				dataType : "json",
				async: false,//将ajax设置为同步
				success : function(msg) {
					if (msg.errCode == '1') {
						temp=true;
					}else{
						layer.msg(msg.errMsg, {icon: 5});
					}
				},
				error : function(XMLHttpRequest, textStatus, errorThrown) {
					layer.msg("系统出错", {icon: 5});
				}	
			});
		    return temp;
		}
		//生成时间
		var getDate = function(date, dateHide) {
			function getNowFormatDate() {
				var date = new Date();
				var seperator1 = "年";
				var seperator2 = "月";
				var seperator3 = "日";
				var month = date.getMonth() + 1;
				var strDate = date.getDate();
				if (month >= 1 && month <= 9) {
					month = "0" + month;
				}
				if (strDate >= 0 && strDate <= 9) {
					strDate = "0" + strDate;
				}
				var currentdate = date.getFullYear() + seperator1 + month
						+ seperator2 + strDate + seperator3
				return currentdate;
			}
			$("#" + date).html(getNowFormatDate());
			$("#" + dateHide).val(getNowFormatDate());
		}
		//响应签名功能
		var clickImg = function(mInputId, mImgId, imgageCompress) {
			inputId = mInputId;
			imgId = mImgId;
			layer.open({
				type : 2,
				title : "电子签名",
				fix : false, //不固定
				maxmin : false,
				shadeClose : true,
				shade : 0.3,
				area : [ '80%', '90%' ],
				content : basePath + '/common/signImage.dop?imageCompress='
						+ imgageCompress
			});
		}
		//弹出框选择回调函数
		var selectCallBack2 = function(base64Codes) {
			debugger;
			var form = document.forms[0];
			var formData = new FormData(form); //这里连带form里的其他参数也一起提交了,如果不需要提交其他参数可以直接FormData无参数的构造函数  
			//convertBase64UrlToBlob函数是将base64编码转换为Blob  
			formData.append("file", convertBase64UrlToBlob(base64Codes)); //append函数的第一个参数是后台获取数据的参数名,和html标签的input的name属性功能相同
			//设置表三的保存的文件名称
			formData.append("savetablefilename","tabletherecheck"),
			//ajax 提交form  
			$.ajax({
				url : basePath + "/common/uploadFile.idop",
				type : "POST",
				data : formData,
				dataType : "text",
				processData : false, // 告诉jQuery不要去处理发送的数据  
				contentType : false, // 告诉jQuery不要去设置Content-Type请求头  
				success : function(msg) {
					// window.location.href="${ctx}"+data;  
					var data = JSON.parse(msg);
					if (data.errCode != '1') {
						debugger;
						layer.msg('签名失败！', {
							icon : 5
						});
					}
					if (data.errCode == '1') {
						debugger;
						layer.msg('签名成功！', {
							icon : 6
						});
						//回显示图片数据
						echoImageData(data.data);
					}
				},
			});
			layer.closeAll();
		}
		/**  
		 * 将以base64的图片url数据转换为Blob  
		 * 用url方式表示的base64图片数据  
		 */
		function convertBase64UrlToBlob(urlData) {
			debugger;
			//var bytes=decodeURIComponent(window.atob(urlData.split(',')[1]));
			var bytes = window.atob(urlData.split(',')[1]); //去掉url的头，并转换为byte  
			//处理异常,将ascii码小于0的转换为大于0  
			var ab = new ArrayBuffer(bytes.length);
			var ia = new Uint8Array(ab);
			for (var i = 0; i < bytes.length; i++) {
				ia[i] = bytes.charCodeAt(i);
			}
			return new Blob([ ab ], {
				type : 'image/png'
			});
		}
		//回显示图片数据
		function echoImageData(imgUrl) {
			// 根据clickImg传递的mInputId并赋值给全局变量inputId 为其赋值
			$("#" + imgId).attr("src", ImageServer + imgUrl);
			//为对应的name属性值赋值
			$("#" + inputId).val(imgUrl);
			return true;
		}

		//处理键盘事件 禁止后退键（Backspace）密码或单行、多行文本框除外
		function banBackSpace(e) {
			var ev = e || window.event;//获取event对象   
			var obj = ev.target || ev.srcElement;//获取事件源   
			var t = obj.type || obj.getAttribute('type');//获取事件源类型  
			//获取作为判断条件的事件类型
			var vReadOnly = obj.getAttribute('readonly');
			//处理null值情况
			vReadOnly = (vReadOnly == "") ? false : vReadOnly;
			//当敲Backspace键时，事件源类型为密码或单行、多行文本的，
			//并且readonly属性为true或enabled属性为false的，则退格键失效
			var flag1 = (ev.keyCode == 8
					&& (t == "password" || t == "text" || t == "textarea") && vReadOnly == "readonly") ? true
					: false;
			//当敲Backspace键时，事件源类型非密码或单行、多行文本的，则退格键失效
			var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea") ? true
					: false;

			//判断
			if (flag2) {
				return false;
			}
			if (flag1) {
				return false;
			}
		}
		$(".yijian").focus(
				function() {
					function getNowFormatDate() {
						var date = new Date();
						var seperator1 = "年";
						var seperator2 = "月";
						var seperator3 = "日";
						var month = date.getMonth() + 1;
						var strDate = date.getDate();
						if (month >= 1 && month <= 9) {
							month = "0" + month;
						}
						if (strDate >= 0 && strDate <= 9) {
							strDate = "0" + strDate;
						}
						var currentdate = date.getFullYear() + seperator1
								+ month + seperator2 + strDate + seperator3
						return currentdate;
					}
					$(this).next().html(getNowFormatDate());
					$(this).next().next().val(getNowFormatDate());
				});
		
		/* 返回列表 */
		function backList(){
			location.href="listTable.do";
		}
	</script>



</html>
